// @import './normalize.css';
// @import './theme/light.scss';
// @import './theme/dark.scss';

// @import './vant.scss';

// 公共变量:
root {
  // 最大宽度
  --ex-max-width: 100%;
  /* 白色 */
  --ex-white: #fff;
  /* 黑色 */
  --ex-black: #000;
}

@media (min-width: 640px) {
  // pc
  :root {
    /* 最大宽度 */
    --ex-max-width: 375px;
  }

  // 滚动条
  ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    background-color: transparent;
  }

  ::-webkit-scrollbar-thumb {
    display: block;
    min-height: 4px;
    min-width: 4px;
    border-radius: 6px;
    background-color: rgb(217, 217, 217);
  }

  ::-webkit-scrollbar-thumb:hover {
    display: block;
    min-height: 4px;
    min-width: 4px;
    border-radius: 6px;
    background-color: rgb(159, 159, 159);
  }
}

@media (max-width: 640px) {
  :root {
    /* 最大宽度 */
    --ex-max-width: 100%;
  }
}

* {
  line-height: 1.2;
  user-select: none;
  user-drag: none;
}

textarea {
  user-select: text;
}

input {
  user-select: text;
  background: var(--ex-default-bgcolor);
}

body,
html {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background: #fff;
  color: #000;
  font-family: PingFang SC-Bold, PingFang SC;
  box-sizing: border-box;
}

p,
span,
div {
  box-sizing: border-box;
  font-family: PingFang SC-Bold, PingFang SC;
  font-size: 28px;
  // color: #333;
}

#app {
  width: 100%;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  margin: auto;
  overflow: hidden;
  max-width: var(--ex-max-width);
}

img {
  object-fit: contain;
}

.fw-bold {
  font-family: PingFang SC-Bold, PingFang SC;
  font-weight: bold;
}

.text-ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.text-ellipsis2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; //多行在这里修改数字即可
  overflow: hidden;
  -webkit-box-orient: vertical;
  word-break: break-all;
  -webkit-box-orient: vertical;
}

.columnFlex {
  display: flex;
  flex-direction: column;
}

.listBoxMax {
  max-height: 70vh;
  overflow: auto;
}

input:-webkit-autofill {
  background-color: transparent;
}

// 取消状态是number 的上下箭头
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

iframe#chat-widget-minimized {
  display: none !important;
}
.align-left {
  text-align: left;
}
.align-center {
  text-align: center;
}
.align-right {
  text-align: right !important;
}
.no-border {
  border: none !important;
}
.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-warp {
  display: flex;
  flex-wrap: wrap;
}

.justify-start {
  justify-content: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.justify-evenly {
  justify-content: space-evenly;
}

.justify-around {
  justify-content: space-around;
}

.justify-between {
  justify-content: space-between;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.items-end {
  align-items: flex-end;
}
.van-toast {
  min-width: 300px; /* 设置最小宽度 */
  max-width: 80%; /* 限制最大宽度，避免超出屏幕 */
  text-align: center; /* 居中显示文本 */
}
.flex-ct {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-st {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.flex-wt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.flex-cc {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-en {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
